# Contributor: Thomas Boerger <thomas@webhippie.de>
# Maintainer: omni <omni+alpine@hack.org>
pkgname=py3-cli_helpers
_pkgname=cli_helpers
pkgver=2.2.1
pkgrel=0
pkgdesc="A helper library for command-line interfaces"
url="https://pypi.python.org/pypi/cli-helpers"
arch="noarch"
license="BSD-3-Clause"
depends="py3-tabulate py3-configobj"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-wcwidth"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces="py-cli_helpers" # Backwards compatibility
provides="py-cli_helpers=$pkgver-r$pkgrel" # Backwards compatiblity

check() {
	py.test-3
}

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
df0972f8ae3f2dfc8ad0541391762a8e80aa97bfd78ff14e999c386f08da2817bafaf41da74c7ca7cf24fbfc5e14e725fe18ab9865e5307fbe9fe65ff915a1c0  py3-cli_helpers-2.2.1.tar.gz
"
